<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Gold Bach Conjecturer</title>
  <script>
function rev(s){
  var arr = s.split(' ');
  var newArr = arr.reverse();
  var res = newArr.join(" ");
  return res;
}

console.log(rev("i come from beijing"));
  </script>
</head>
<body>
  
</body>
</html>